package com.rmb.controller;

import com.rmb.mart.entity.workbench.ConsumeTwo;
import com.rmb.service.ConsumeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @ClassName ConsumeController
 * @Description 消费趋势图
 * @Author lvshook
 * @Date 2021/1/22 10:47
 * @Version 1.0
 **/
@RestController
@RequestMapping("/rmb/consume")
public class ConsumeController {

    @Autowired
    private ConsumeService consumeService;

    /**
     * 消费趋势图
     * @param consumeTwo
     * @return
     */
    @PostMapping("/getConsume")
    public Map getConsume(@RequestBody ConsumeTwo consumeTwo){
        return consumeService.getConsume(consumeTwo);
    }

}
